package Student;

import Student.Student;

/**
 * @description: 文学系
 * @author: rock
 * @create:
 **/
public class literary extends Student {
    private double speekGrade;
    private double production;
    private double midGrade;
    private double endGrade;

    public literary(int xuehao,  String sex,int age, String name, double speekGrade, double production, double midGrade, double endGrade) {
        super(xuehao, age, name,sex);
        this.speekGrade = speekGrade;
        this.production = production;
        this.midGrade = midGrade;
        this.endGrade = endGrade;
    }
    public literary(){}



    @Override
    public double getGrade(){
        return speekGrade*0.35+production*0.35+midGrade*0.15+endGrade*0.15;
    }
}
